<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
</head>
<body>
    <h1>Express测试</h1>

    <script>
        let xhr = new XMLHttpRequest();
        xhr.open('post','http://localhost:2008/api/goods',true);
        xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
        xhr.send(`name=huawei mate40&price=5998`);
    </script>
</body>
</html>